package org.akomantoso.core.io.util.group;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import org.akomantoso.core.data.Container;
import org.akomantoso.core.data.group.ContainerElements;
import org.akomantoso.core.io.util.Instantiator;
import org.akomantoso.core.util.MapUtil;

public class ContainerElementsGroup {

	private ContainerElementsGroup() {
	}

	public static final Map<String, Instantiator<ContainerElements>> MAP;

	static {

		Map<String, Instantiator<ContainerElements>> temp = new HashMap<String, Instantiator<ContainerElements>>();

		MapUtil.copy(SpeechSectionGroup.MAP, temp);
		
		temp.put(Container.ELEMENT, new Instantiator<ContainerElements>() {
			public Container instantiate() {
				return new Container();
			}
		});
		
		MAP = Collections.unmodifiableMap(temp);
	}
}
